/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-11-20 15:04:29
 * @LastEditors: huangtianyang
 * @LastEditTime: 2024-03-25 16:51:59
 * @FilePath: \cxl-driving-training\src\views\column\list\formConfig.ts
 */
import { PropsFormpData } from '@/utils/interface'

export const listConfig: PropsFormpData[] = [
    [
        {
            key: 'name',
            label: '栏目名称：',
            placeholder: '请输入',
            required: true,
            message: '请输入栏目名称',
            value: '',
            type: 'text',
            width: 2,
            trigger: 'blur',
            valid: true
        },

        {
            key: 'sort',
            label: '排序：',
            required: true,
            message: '请输入排序',
            value: '',
            type: 'number',
            width: 2,
            trigger: 'blur',
            valid: true
        }
    ],
    [
        {
            key: 'location',
            label: '展示位置：',
            required: true,
            message: '请输入展示位置',
            value: '',
            type: 'select',
            width: 2,
            trigger: 'blur',
            valid: true,
            options: []
        },
        {
            key: 'type',
            label: '栏目形式：',
            required: true,
            message: '请选择栏目形式',
            value: '',
            type: 'radio',
            width: 2,
            trigger: 'blur',
            valid: true,
            options: [
                { label: '视频', value: '1' },
                { label: '图文', value: '2' },
                { label: '图片', value: '3' }
            ]
        },
        {
            key: 'displayForm',
            label: '展示形式：',
            required: true,
            message: '请选择展示形式：',
            value: '',
            type: 'radio',
            width: 2,
            trigger: 'blur',
            valid: true,
            options: [
                { label: '轮播', value: '1' },
                { label: '列表', value: '2' }
            ]
        }
    ],
    [
        {
            key: 'introduction',
            label: '栏目说明：',
            placeholder: '请输入',
            required: false,
            message: '请输入栏目说明',
            value: '',
            type: 'textarea',
            width: 4,
            trigger: 'blur',
            valid: true
        }
    ]
]
